package com.hellobj.demo.packagehelper.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @author hello
 * @date 2018/6/19
 */
public  class DateParse {
    public static String parse1(String content){
        SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US);
        try{
            String tmp;
            Date date = dateFormat.parse(content);
            dateFormat.applyPattern("yyyy/MM/dd HH:mm:ss");
            tmp = dateFormat.format(date);
            return tmp;
        } catch (java.text.ParseException e){
            System.out.println(e.getMessage());
            return null;
        }
    }
}
